﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CPPProject.CPP
{
    /// <summary>
    /// 公司表
    /// </summary>
    [Table("CPPCompany")]
    public class CPPCompany : Entity<long>, IHasCreationTime, IMustHaveTenant, IModificationAudited
    {
        public int TenantId { get; set; }
        public DateTime CreationTime { get; set; }
        public long? LastModifierUserId { get; set; }
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 联系地址
        /// </summary>
        [Required]
        [MaxLength(500)]
        public string Address { get; set; }
        /// <summary>
        /// 联系地址2
        /// </summary>
        [MaxLength(500)]
        public string Address2 { get; set; }
        /// <summary>
        /// 联系地址3
        /// </summary>
        [MaxLength(500)]
        public string Address3 { get; set; }
        /// <summary>
        /// 联系人1
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Contactor { get; set; }
        /// <summary>
        /// 联系人2
        /// </summary>
        [MaxLength(50)]
        public string Contactor2 { get; set; }
        /// <summary>
        /// 联系人3
        /// </summary>
        [MaxLength(50)]
        public string Contactor3 { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Telphone { get; set; }
        /// <summary>
        /// 联系电话2
        /// </summary>
        [MaxLength(50)]
        public string Telphone2 { get; set; }
        /// <summary>
        /// 联系电话3
        /// </summary>
        [MaxLength(50)]
        public string Telphone3 { get; set; }
    }
}
